<template>
	<view class="index-list">
		<view class="index-list1 u-f-a u-jsb">
			<view class="u-f-a">
				<image :src="item.avatar" mode="widthFix" lazy-load></image>
				{{item.username}}
			</view>
			<view class="u-f-a" v-show="item.isfollow">
				<view class="icon iconfont icon-zengjia"></view>
				关注
			</view>
		</view>
		<view class="index-list2">{{item.title}}</view>
		<view class="index-list3 u-f-a-j">
			<!-- 图片 -->
			<image :src="item.image" mode="widthFix" lazy-load></image>
			<!-- 视频 -->
			<template v-if="item.type=='video'">
				<view class="index-list-play icon iconfont icon-bofang"></view>
				<view class="index-list-playinfo">{{item.playnum}}次播放 {{item.videotime}}</view>
			</template>
		</view>
		<view class="index-list4 u-f-a u-jsb">
			<view class="u-f-a">
				<!-- 左边-->
				<view class="u-f-a" :class="{'choose':(item.infonum.flag==1)}">
					<!-- 顶-->
					<view class="icon iconfont icon-icon_xiaolian-mian"></view>{{item.infonum.praisenum}}
				</view>
				<view class="u-f-a" :class="{'choose':(item.infonum.flag==2)}">
					<!-- 踩-->
					<view class="icon iconfont icon-kulian"></view>{{item.infonum.unpraisenum}}
				</view>
			</view>
			<view class="u-f-a">
				<!-- 右边-->
				<view class="u-f-a">
					<!-- 评论-->
					<view class="icon iconfont icon-pinglun1"></view>{{item.commentnum}}
				</view>
				<view class="u-f-a">
					<!-- 转发-->
					<view class="icon iconfont icon-zhuanfa"></view>{{item.sharenum}}
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		props:{
			item:Object,
			index:Number
		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped>
	.index-list {
		padding: 20upx;
		border-bottom: 1upx solid #EFEFEF;
	}

	/* 头像 昵称 关注 */
	.index-list1 {}

	.index-list1>view:first-child {
		color: #999999;
	}

	.index-list1>view:first-child image {
		width: 90upx;
		height: 90upx;
		border-radius: 100%;
		margin-right: 10upx;
	}

	.index-list1>view:last-child {
		background-color: #F4F4F4;
		border-radius: 5upx;
		padding: 0 10upx;
	}

	/* 标题 */
	.index-list2 {
		padding-top: 15upx;
		font-size: 35upx;
	}

	/* 封面 */
	.index-list3 {
		padding-top: 15upx;
		position: relative;
	}

	.index-list3>image {
		width: 100%;
		border-radius: 20upx;
	}

	.index-list4 {
		padding: 15upx 0;
		/* 上下15 左右0*/
	}

	.index-list4 view {
		color: #999999;
	}

	.index-list4>view>view,
	.index-list4>view>view>view {
		margin-right: 10upx;
	}

	.index-list-play {
		position: absolute;
		font-size: 150upx;
		color: #FFFFFF;
	}

	.index-list-playinfo {
		position: absolute;
		background-color: #2C405A;
		color: #FFFFFF;
		bottom: 8upx;
		right: 8upx;
		border-radius: 50upx;
		font-size: 22upx;
		padding: 0 12upx;
	}

	.index-list4 .choose,
	.index-list4 .choose>view {
		color: #8A6DE9;
	}
</style>
